<!DOCTYPE html>
<html th:replace="layout/layout"
      xmlns:th="http://www.thymeleaf.org">
<title th:fragment="titleName">首页</title>
<style th:fragment="styles">
    #chartDiv, #container {
        height: 320px;
        width: 100%;
        overflow: hidden;
    }

</style>
<div th:fragment="content">

    <div class="wrapper wrapper-content">

        <div class="row  border-bottom white-bg dashboard-header">
            <input type="hidden" th:value="${AnimalTypes}" id="AnimalTypes"/>
            <div class="row">
                <div class="col-lg-6" id="newsusers">
                    <div class="panel panel-info">
                        <div class="panel-heading">
                            <i class="fa fa-info-circle"></i> 推送消息列表
                            <a style="float: right;color: white" href="/newsUsers/index">更多>></a>
                        </div>

                        <div class="panel-body">
                            <div class="jqGrid_wrapper">
                                <table class="table table-striped table-bordered table-hover " id="tableList3">
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6" id="noticeUsers">
                    <div class="panel panel-info">
                        <div class="panel-heading">
                            <i class="fa fa-info-circle"></i> 通知公告列表
                            <a style="float: right;color: white" href="/noticeUsers/index">更多>></a>
                        </div>

                        <div class="panel-body">
                            <div class="jqGrid_wrapper">
                                <table class="table table-striped table-bordered table-hover " id="tableList4">
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12" id="getPreProduction">
                    <div class="panel panel-info">
                        <div class="panel-heading">
                            <i class="fa fa-info-circle"></i> 预产期提醒
                            <a style="float: right;color: white" href="/reproduction/index">更多>></a>
                        </div>

                        <div class="panel-body">
                            <div class="jqGrid_wrapper">
                                <table class="table table-striped table-bordered table-hover " id="tableList">
                                </table>
                            </div>
                        </div>
                    </div>
                </div>

<!--                <div class="col-lg-12" id="getMonthlyReport">-->
<!--                    <div class="panel panel-info">-->
<!--                        <div class="panel-heading">-->
<!--                            <i class="fa fa-info-circle"></i> 月报填报提醒-->

<!--                        </div>-->

<!--                        <div class="panel-body">-->
<!--                            <div class="jqGrid_wrapper">-->
<!--                                <table class="table table-striped table-bordered table-hover " id="tableList1">-->
<!--                                </table>-->
<!--                            </div>-->
<!--                        </div>-->
<!--                    </div>-->
<!--                </div>-->
            </div>

            <div class="row">
                <div class="col-lg-12" id="harmlessReporting">
                    <div class="panel panel-info">
                        <div class="panel-heading">
                            <i class="fa fa-info-circle"></i> 无害化处理提醒
                            <a style="float: right;color: white" href="/harmlessReportSpeech/index">更多>></a>
                        </div>

                        <div class="panel-body">
                            <div class="jqGrid_wrapper">
                                <table class="table table-striped table-bordered table-hover " id="tableList2">
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 分娩模态框 -->
    <div class="modal inmodal" id="myModalAdd" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">分娩记录</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">

                        <form class="form-horizontal" id="myform">
                            <div class="panel-body form-horizontal">
                                <div class="row">
                                    <label class="col-lg-2 control-label"><font color="red">*</font>分娩日期</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="childbirth_date" name="childbirth_date"
                                                   placeholder="分娩日期" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label"><font color="red">*</font>母畜编号</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="text" id="female_number" name="female_number" placeholder="母畜编号"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label"><font color="red">*</font>产仔数</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="number" id="litter_size" name="litter_size"
                                                   placeholder="产仔数" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label"><font color="red">*</font>活仔数</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="number" id="live_births" name="live_births" placeholder="活仔数"
                                                   autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>

                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="save" name="save" class="btn btn-success" onclick="saveRecord();"><i
                            class="fa fa-save"></i>&nbsp;提交
                    </button>
                    <button type="button" id="close" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>
    <!-- 分娩模态框结束 -->

    <!-- 月报填写模态框 -->
<!--    <div class="modal inmodal" id="myModalAdd1" tabindex="-1" role="dialog" aria-hidden="true">-->
<!--        <div class="modal-dialog  modal-lg">-->
<!--            <div class="modal-content animated bounceInRight">-->
<!--                <div class="modal-header">-->
<!--                    <button type="button" class="close" data-dismiss="modal"><span-->
<!--                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>-->
<!--                    <h4 class="modal-title">月报记录</h4>-->
<!--                </div>-->
<!--                <div class="modal-body">-->
<!--                    &lt;!&ndash;@*模态框body*@&ndash;&gt;-->
<!--                    <div class="tabs-container">-->

<!--                        <form class="form-horizontal" id="myform1">-->
<!--                            <div class="panel-body form-horizontal">-->

<!--                                <div class="row">-->
<!--                                    <label class="col-lg-3 control-label"><font color="red">*</font>上报年月</label>-->
<!--                                    <div class="col-lg-3">-->
<!--                                        <div class="form-group">-->
<!--                                            <input type="text" id="text_ReportMonth" name="text_ReportMonth" placeholder="上报年月" autocomplete="off" class="form-control">-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <label class="col-lg-3 control-label"><font color="red">*</font>本月后备母畜禽存栏数</label>-->
<!--                                    <div class="col-lg-3">-->
<!--                                        <div class="form-group">-->
<!--                                            <input type="number" id="text_LivestockReserve" name="text_LivestockReserve" placeholder="本月后备母畜禽存栏数" autocomplete="off" class="form-control" maxlength="500" />-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="row">-->
<!--                                    <label class="col-lg-3 control-label"><font color="red">*</font>本月经产母畜禽存栏数</label>-->
<!--                                    <div class="col-lg-3">-->
<!--                                        <div class="form-group">-->
<!--                                            <input type="number" id="text_LivestockMenstruation" name="text_LivestockMenstruation" placeholder="本月经产母畜禽存栏数" autocomplete="off" class="form-control">-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <label class="col-lg-3 control-label"><font color="red">*</font>本月商品母畜禽存栏数</label>-->
<!--                                    <div class="col-lg-3">-->
<!--                                        <div class="form-group">-->
<!--                                            <input type="number" id="text_LivestockShop" name="text_LivestockShop" placeholder="本月商品母畜禽存栏数" autocomplete="off" class="form-control" maxlength="500" />-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="row">-->
<!--                                    <label class="col-lg-3 control-label"><font color="red">*</font>本月产仔胎数</label>-->
<!--                                    <div class="col-lg-3">-->
<!--                                        <div class="form-group">-->
<!--                                            <input type="number" id="text_FetusNumber" name="text_FetusNumber" placeholder="本月产仔胎数" autocomplete="off" class="form-control">-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <label class="col-lg-3 control-label"><font color="red">*</font>本月产仔数</label>-->
<!--                                    <div class="col-lg-3">-->
<!--                                        <div class="form-group">-->
<!--                                            <input type="number" id="text_LitterNumber" name="text_LitterNumber" placeholder="本月产仔数" autocomplete="off" class="form-control" maxlength="500" />-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="row">-->
<!--                                    <label class="col-lg-3 control-label"><font color="red">*</font>本月种公畜禽出栏数</label>-->
<!--                                    <div class="col-lg-3">-->
<!--                                        <div class="form-group">-->
<!--                                            <input type="number" id="text_PublicationMale" name="text_PublicationMale" placeholder="本月种公畜禽出栏数" autocomplete="off" class="form-control">-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <label class="col-lg-3 control-label"><font color="red">*</font>本月种母畜禽出栏数</label>-->
<!--                                    <div class="col-lg-3">-->
<!--                                        <div class="form-group">-->
<!--                                            <input type="number" id="text_PublicationFemale" name="text_PublicationFemale" placeholder="本月种母畜禽出栏数" autocomplete="off" class="form-control" maxlength="500" />-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="row">-->
<!--                                    <label class="col-lg-3 control-label"><font color="red">*</font>本月商品畜禽出栏数</label>-->
<!--                                    <div class="col-lg-3">-->
<!--                                        <div class="form-group">-->
<!--                                            <input type="number" id="text_PublicationShop" name="text_PublicationShop" placeholder="本月商品畜禽出栏数" autocomplete="off" class="form-control">-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <label class="col-lg-3 control-label"><font color="red">*</font>本月报检数</label>-->
<!--                                    <div class="col-lg-3">-->
<!--                                        <div class="form-group">-->
<!--                                            <input type="number" id="text_InspectionNumber" name="text_InspectionNumber" placeholder="本月报检数" autocomplete="off" class="form-control" maxlength="500" />-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="row">-->
<!--                                    <label class="col-lg-3 control-label"><font color="red">*</font>本月种公畜禽无害化处理数</label>-->
<!--                                    <div class="col-lg-3">-->
<!--                                        <div class="form-group">-->
<!--                                            <input type="number" id="text_HarmlessMale" name="text_HarmlessMale" placeholder="本月种公畜禽无害化处理数" autocomplete="off" class="form-control">-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <label class="col-lg-3 control-label"><font color="red">*</font>本月种母畜禽无害化处理数</label>-->
<!--                                    <div class="col-lg-3">-->
<!--                                        <div class="form-group">-->
<!--                                            <input type="number" id="text_HarmlessFemale" name="text_HarmlessFemale" placeholder="本月种母畜禽无害化处理数" autocomplete="off" class="form-control" maxlength="500" />-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="row">-->
<!--                                    <label class="col-lg-3 control-label"><font color="red">*</font>本月商品畜禽无害化处理数</label>-->
<!--                                    <div class="col-lg-3">-->
<!--                                        <div class="form-group">-->
<!--                                            <input type="number" id="text_HarmlessShop" name="text_HarmlessShop" placeholder="本月商品畜禽无害化处理数" autocomplete="off" class="form-control">-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                            </div>-->
<!--                        </form>-->
<!--                    </div>-->

<!--                    &lt;!&ndash;模态框body结束&ndash;&gt;-->
<!--                </div>-->
<!--                <div class="modal-footer">-->
<!--                    <button type="button" id="save1" name="save" class="btn btn-success" onclick="saveRecord1();"><i-->
<!--                            class="fa fa-save"></i>&nbsp;提交-->
<!--                    </button>-->
<!--                    <button type="button" id="close1" name="close" class="btn btn-danger" data-dismiss="modal"><i-->
<!--                            class="fa fa-close"></i>&nbsp;关 闭-->
<!--                    </button>-->
<!--                </div>-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->
    <!-- 月报填写模态框结束 -->

    <!-- 无害化上报模态框 -->
    <div class="modal inmodal" id="myModalAdd2" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">无害化上报</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->

                    <div class="tabs-container">

                        <form class="form-horizontal" id="myform2">
                            <div class="panel-body form-horizontal">

                                <div class="row">
                                    <label class="col-lg-2 control-label"><font style="color: red">*</font>批次号：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select disabled id="batch" name="batch" autocomplete="off" class="form-control">
                                                <option value="">--请选择批次号--</option>
                                                <option v-for="(item,index) in batchList" :value="item.id">{{item.batchNumber}}</option>
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">种公畜：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="number" id="species" name="species" placeholder="种公畜" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">后备母畜：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="number" id="reserve" name="reserve" placeholder="后备母畜" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">能繁母畜：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="number" id="menstruation" name="menstruation"  placeholder="能繁母畜" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">哺乳牲畜：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="number" id="lactation" name="lactation" placeholder="哺乳牲畜" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">保育牲畜：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="number" id="conservation" name="conservation"  placeholder="保育牲畜" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label">育成牲畜：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="number" id="commodity" name="commodity" placeholder="育成牲畜" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">动物照片：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <img onclick="$('#uploadImages').click()" id="showImage" src=""
                                                 style="display: none" class="img-responsive">
                                            <!--                                            <input accept=".png,.jpg" type="file" onchange="ImportImages()"-->
                                            <!--                                                   id="uploadImages" name="uploadImages" autocomplete="off"-->
                                            <!--                                                   class="form-control">-->
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                    <label class="col-lg-2 control-label"><font style="color: red">*</font>死亡原因：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" id="cause" name="cause"  placeholder="死亡原因" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label"><font style="color: red">*</font>处理途径：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id="dhannel" name="dhannel" autocomplete="off" class="form-control">
<!--                                                <option value="0">自行处理</option>-->
<!--                                                <option value="1">集中处理</option>-->
                                            </select>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="save2" name="save" class="btn btn-success" onclick="saveRecord2();"><i class="fa fa-save"></i>&nbsp;提交</button>
                    <button type="button" id="close2" name="close" class="btn btn-danger" data-dismiss="modal"><i class="fa fa-close"></i>&nbsp;关 闭</button>
                </div>
            </div>
        </div>
    </div>



    <div class="modal inmodal" id="myModalAdd3" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">无害化上报</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->

                    <div class="tabs-container">

                        <form class="form-horizontal" id="myform3">
                            <div class="panel-body form-horizontal">

                                <div class="row">
                                    <label class="col-lg-2 control-label">病死畜禽数量：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input readonly type="number" id="livestock" name="livestock" placeholder="病死畜禽数量" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label">动物照片：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <img id="showImage2" src=""
                                                 style="display: none" class="img-responsive">
                                            <!--                                            <input accept=".png,.jpg" type="file" onchange="ImportImages2()"-->
                                            <!--                                                   id="uploadImages2" name="uploadImages2" autocomplete="off"-->
                                            <!--                                                   class="form-control">-->
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-2 control-label"><font style="color: red">*</font>死亡原因：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <input type="text" name="cause" id="cause1" placeholder="死亡原因" autocomplete="off" class="form-control">
                                        </div>
                                    </div>
                                    <label class="col-lg-2 control-label"><font style="color: red">*</font>处理途径：</label>
                                    <div class="col-lg-4">
                                        <div class="form-group">
                                            <select id="dhannel1" name="dhannel1" autocomplete="off" class="form-control">
<!--                                                <option value="0">自行处理</option>-->
<!--                                                <option value="1">集中处理</option>-->
                                            </select>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="save3" name="save" class="btn btn-success" onclick="saveRecord2();"><i class="fa fa-save"></i>&nbsp;提交</button>
                    <button type="button" id="close3" name="close" class="btn btn-danger" data-dismiss="modal"><i class="fa fa-close"></i>&nbsp;关 闭</button>
                </div>
            </div>
        </div>
    </div>
    <!-- 无害化上报模态框结束 -->

    <!-- 查看公告模态框 -->
    <div class="modal inmodal" id="myModalView" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title" id="title"></h4>
                    <span id="publisher"></span>
                    <span id="publisheTime"></span>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">
                        <div id="myContent"></div>
                    </div>

                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <div class="row" id="showEnclosure" hidden>
                        <!--@*模态框body*@-->
                        <a download="" href="" style="float: left" id="downEnclosure">下载附件</a>
                        <!--模态框body结束-->
                    </div>
                    <button type="button" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>
    <!-- 查看公告模态框结束 -->

    <!-- 推送消息模态框 -->
    <div class="modal inmodal" id="myModalView1" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title" id="title1"></h4>
                    <span id="publisher1"></span>
                    <span id="publisheTime1"></span>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->
                    <div class="tabs-container">
                        <div id="myContent1"></div>
                    </div>

                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button"  name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>
    <!-- 推送消息模态框结束 -->
</div>
<div th:fragment="scriptRef">
    <script th:src="@{/js/lib/inspinia/js/plugins/laydate/laydate.js}"></script>
    <script th:src="@{/js/home/home3.js}"></script>
    <script th:src="@{/js/lib/echart/echarts.min.js}"></script>
    <!--表单验证-->
    <script th:src="@{/js/lib/validate/jquery.validate.min.js}"></script>
</div>
<script th:fragment="scripts" type="text/javascript">
    Home3.init();
    //画柱状图
    //   Maps("line", myChart, '{value}');
</script>
</html>